package com.xue.zuoye;


import java.util.Scanner;

//编写一个程序，实现从命令行参数输入两个字符串类型的数值，并计算输出两个数值的和
public class Task301 {
    public static void main(String[] args) {
        System.out.println("请输入两个字符串类型的数值：：");
        Scanner scanner=new Scanner(System.in);
        String n1=scanner.next();
        String n2=scanner.next();
        Sum(n1,n2);

    }

    public static void Sum(String n1,String n2) {
        int x=Integer.parseInt(n1);
        int y=Integer.parseInt(n2);
        int sum=x+y;
        System.out.println(x+"与"+y+"两个数值的和为"+sum);
    }
}
